package controller

import (
	"github.com/gin-gonic/gin"
)

type HelloController struct {
	
}

func (hello *HelloController)Router(group *gin.RouterGroup)  {
	group.GET("/hello",hello.Hello)
}

func (hello *HelloController)Hello(context *gin.Context)  {
	//token := context.Request.Header.Get("token")
	//fmt.Println("hellohellohellohello")
	//fmt.Println(token)
	//s ,_ := tool.ParseToken(token)
	//fmt.Println(s)
	context.JSON(200, map[string]interface{}{
		"message":"hello返回成功",
	})
}
